extends NPC

var input_dict = {
	"move_down" : Vector2.DOWN,
	"move_up" : Vector2.UP,
	"move_left" : Vector2.LEFT,
	"move_right" : Vector2.RIGHT
}

func _ready():
	$AnimationPlayer.play("idle_down")

func _physics_process(dt):
	proc_input()
	proc_move(dt)
	proc_sprite()
	

func proc_input():
	direction = Vector2()
	for m in input_dict:
		if Input.is_action_pressed(m):
			direction += input_dict[m]
